<template>
	<rich-text bindtap="tap" :nodes="diyitem.params.content" :style="{background:diyitem.style.background,padding:diyitem.style.padding==0?0:app.pxToRpx(diyitem.style.padding)+'rpx '+diyitem.style.padding==0?0:app.pxToRpx(diyitem.style.padding)+'rpx',display:'block'}"></rich-text>
</template>


<script>
	export default {
		name: "tpl_richtext",
		props: {
			diyitem: {
				type: Object,
				default: function() {
					return {};
				}
			},
		},
		data() {
			return {};
		},
		watch: {},
		computed: {},
		methods: {

		}
	}
</script>

<style lang='scss'>
</style>
